<div class="card" style="margin:0;margin-bottom:0.5rem">  
	<div class="card-content">
	  <div class="list-block media-list">
	    <ul>
	      <li class="item-content">
	        <div class="item-media">
	          <img src="
	          		<% if(logourl == null) {%>
	          			http://qiniucdn.haojs.com.cn/wjtlogo.jpg
	          		<% }else{ %>
	          			<%=logourl %>
	          		<% } %>
	          		" width="44">
	        </div>
	        <div class="item-inner">
	          <div class="item-title-row">
	            <div class="item-title"><%=name %></div>
	          </div>
	          <div class="item-subtitle">累计访问人次：<%=attends %></div>
	        </div>
	      </li>
	    </ul>
	  </div>
	</div>
	<div class="card-footer">
	  <span> 
	  	<a href="javascript:void(0)" class="button open-popup" data-popup=".popup-setting" >  <span class="icon icon-settings"></span> &nbsp;管理微讲堂</a>
		</span>
	  <span>
		<a href="#org/<%=uuid%>/visit?unionid=<%=unionid%>" class="button button-round button-success button-fill">进入微讲堂主页</a>
	  </span>
	</div>
</div>            

<div class="card">  
<a href="javascript:void(0)" data-orgUuid="<%=uuid %>" class="createroom button button-big button-fill">+ 新建直播间 </a>
</div>            


<div class="content-block-title">直播间列表：</div>

<%  rooms.forEach(function(item){    %>

<div class="card">  
	<div class="card-content">
	  <div class="list-block media-list">
	    <ul>
	      <li class="item-content">
	        <div class="item-media">
	          <img src="
	          <% if(item.thumburl == null){ %>
	          	http://qiniucdn.haojs.com.cn/wjtlogo.jpg
	          <% }else{ %>
	          	<%=item.thumburl %>
	          <% } %>
	          " width="44">
	        </div>
	        <div class="item-inner">
	          <div class="item-title-row">
	            <div class="item-title"><%=item.name%></div>
	          </div>
	          <div class="item-subtitle" style="font-size:12px;">开始时间：<%=new Date(item.time).toLocaleString().replace(/:\d{1,2}$/,' ')%></div>
	        </div>
	      </li>
	    </ul>
	  </div>
	</div>
	<div class="card-footer">
	  <span> 
	  	<a href="#/room/<%=item.uuid%>/manage?unionid=<%=unionid%>" class="button button-warning button-round">管理直播间</a>
		</span>
	  <span>
		<a href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxdd8f1df2a974f04f&redirect_uri=http://www.haojs.com.cn/form/api/wm/route&response_type=code&scope=snsapi_base&state=/wm/room/<%=item.uuid%>/attend#wechat_redirect" class="button button-round button-warning button-fill">进入直播间</a>
	  </span>
	</div>
</div>            


<%  });    %>



<div>&nbsp;</div>
<div style="text-align: center; font-size: 12px;">下面没有直播间了……</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>

